import { request } from '@/plugins/request'

// 得到用户资料
export const getProfile = username => {
    return request({
      method: 'get',
      url: `/api/profiles/${username}`
    })
}

// 更新用户信息
export const updateUser = data => {
    return request({
        method: 'PUT',
        url: `/api/user`,
        data
      })
}
